package com.tt.dp.factory.method;

import com.tt.dp.factory.model.Pizza;
import com.tt.dp.factory.simple.SimplePizzaFactory;

public abstract class PizzaStore {

    public Pizza orderPizza(String type){

        Pizza pizza = null;

        pizza = createPizza(type);

        pizza.prepare();
        pizza.cut();
        pizza.bake();
        pizza.box();
        return pizza;
    }

    abstract Pizza createPizza(String type);
}
